package com.yh.util;

/**
 * 常量定义
 */
public class Config
{


	/**是否记录或打印日志*/
	public final static boolean BRECORD_LOG = true;
	/**司机数据保存的文件名称*/
	public final static String PREF = "dvData";

	/***
	 * 默认的波特率
	 */
	public final static int BATE = 115200;
	// 扩展的
	public final static int BATE_CH = 9600;

	/**
	 * 用于蓝牙
	 */
	public final static String SERIAL_COM = "/dev/ttyS1";

	/**
	 * 4G
	 */
	public final static String SERIAL_CH0 = "/dev/ttyWCH0";

	/**
	 * 计价版
	 */
	public final static String SERIAL_CH1 = "/dev/ttyWCH1";

	/**
	 * 外设1
	 * 单一收发
	 */
	public final static String SERIAL_CH2 = "/dev/ttyWCH2";

	/**
	 * 外设2
	 * 又分3
	 */
	public final static String SERIAL_CH3 = "/dev/ttyWCH3";

	/**
	 * 打印机命令数据,测试
	 * @return
	 */
	public static String getSPIData() {
		return  "02 02 01 40 80 81 20 20 20 20 20 54 41 58 49 20 4E 4F 20 20 20 20 20 20 20 20 20 20 4A 46 36 36 36 38 FF FF 82 80 20 20 20 20 20 53 54 41 52 54 20 20 30 39 2F 31 32 2F 32 30 32 32 20 31 31 3A " +
				"31 39 FF FF 83 80 20 20 20 20 20 45 4E 44 20 20 20 20 30 39 2F 31 32 2F 32 30 32 32 20 31 31 3A 33 32 FF FF 84 85 86 20 20 20 54 4F 54 41 4C 20 4B 4D 20 20 20 20 20 20 20 20 20 20 20 31 2E 36 " +
				"30 FF FF FF 87 88 85 86 20 50 41 49 44 20 20 4B 4D 20 20 20 20 20 20 20 20 20 20 20 31 2E 32 30 FF FF FF FF 87 88 89 8A 20 50 41 49 44 20 20 4D 49 4E 20 20 20 20 20 20 20 20 20 20 35 2E 31 33 " +
				"FF FF FF FF 8B 8C 88 20 20 20 53 55 52 43 48 41 52 47 44 20 48 4B 20 20 20 20 20 20 31 30 2E 30 30 FF FF FF 84 87 88 20 20 20 54 4F 54 41 4C 20 46 41 52 45 20 48 4B 20 20 20 20 20 33 32 2E 30 " +
				"30 FF FF FF 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 8D 8D " +
				"8E 8F 20 54 48 41 4E 4B 20 59 4F 55 20 20 20 20 20 20 FF FF FF FF 03";
	}

}
